import 'package:flutter/material.dart';

class HeaderIconWidget extends StatelessWidget {
  final String path;
  final Function onTab;
  const HeaderIconWidget({Key key, this.path, this.onTab}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return InkWell(
      onTap: onTab,
      child: Container(
        margin: EdgeInsets.only(left: 16),
        child: Image.asset(
          path,
          width: 20,
        ),
      ),
    );
  }
}
